import myaxios from "../MyAxios";
import BASEURL from "../BaseUrl"

const TCHYURL = BASEURL.TCHYURL
const selfOperatedSettlementApi = {
  //  查询司机付款单

  getPaymentList(params) {
    let url = TCHYURL + '/supplier/selfSupportWaybill/self_support/payment'
    return myaxios.get(url, params)
  },
  //  查询货主收款单

  getReceiptList(params) {
    let url = TCHYURL + '/supplier/selfSupportWaybill/self_support/receipt'
    return myaxios.get(url, params)
  },
  // 司机 结算

  selectPayDriver(params) {
    let url = TCHYURL + '/supplier/selfSupportWaybill/self_support/payDriver'
    return myaxios.post(url, params)
  },

  // 付款单详情
  getPaymentDetail(params) {
    let url = TCHYURL + '/supplier/selfSupportWaybill/self_support/paymentDetail'
    return myaxios.get(url, params)
  },

  // 货主 收款

  selectCollection(params) {
    let url = TCHYURL + '/supplier/selfSupportWaybill/self_support/owner_collection'
    return myaxios.post(url, params)
  },

  // 收款单详情
  getReceiptDetail(params) {
    let url = TCHYURL + '/supplier/selfSupportWaybill/self_support/receiptDetail'
    return myaxios.get(url, params)
  },

  // 司机结算单总表 导出excel的数据
  getExcelData(params) {
    let url = TCHYURL + '/supplier/selfSupportOrder/driverTransportExport'
    return myaxios.get(url, params)
  },
  //获取司机姓名选项
  selectDriverInfo(params) {
    let url = TCHYURL + '/supplier/selfSupportOrder/selectDriverInfo'
    return myaxios.get(url, params)
  },
  //获取项目名称选项
  selectProjectName(params) {
    let url = TCHYURL + '/supplier/selfSupportOrder/selectProjectName'
    return myaxios.get(url, params)
  },
  getDriverProjects(params){
	  let url = TCHYURL + '/supplier/selfSupportWaybill/self_support/getDriverProjects'
	  return myaxios.get(url, params)
  }
  

}
export default selfOperatedSettlementApi;